package com.base.service;

import com.base.po.replacement.ReplacementBankCard;
import com.base.po.replacement.ReplacementBankCardExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReplacementBankCardService {
    int countByExample(ReplacementBankCardExample example);

    int deleteByExample(ReplacementBankCardExample example);

    int deleteByPrimaryKey(String id);

    int insert(ReplacementBankCard record);

    int insertSelective(ReplacementBankCard record);

    List<ReplacementBankCard> selectByExample(ReplacementBankCardExample example);

    List<ReplacementBankCard> selectAllCard(@Param("userid") String userid);

    List<ReplacementBankCard> selectByType(@Param("userid") String userid, @Param("type") Integer type);

    ReplacementBankCard selectByPrimaryKey(String id);

    ReplacementBankCard selectByCardNo(@Param("userid") String userid, @Param("cardno") String cardno);

    ReplacementBankCard selectByConfigNo(String configno);

    int updateByExampleSelective(@Param("record") ReplacementBankCard record, @Param("example") ReplacementBankCardExample example);

    int updateByExample(@Param("record") ReplacementBankCard record, @Param("example") ReplacementBankCardExample example);

    int updateByPrimaryKeySelective(ReplacementBankCard record);

    int updateByPrimaryKey(ReplacementBankCard record);
}